<html>
<head>
<title></title>
</head>
<body>
<center>
<br />
<br />
<br />
<table cols="100" width="600" cellspacing="0" border="0" style="font-size:15pt">
<tr>
<td colspan="6" align="right">
<?php
	echo $row->date;
?>
</td>
</tr>
</table>
<table cols="100" width="600" cellspacing="0" border="1px solid black;" style="font-size:15pt">
  <tr>
  <td colspan="2">
  <table cols="100" width="600" cellspacing="0" border="0" style="font-size:15pt">
	<tr>
    <td width="150">姓名：
    <?php
    	echo str_replace(chr(32),'&nbsp;',addslashes(htmlspecialchars($row->name)));
    ?>
    </td>
    <td>性别：<?php echo (!strcmp($row->sex, 'M') ? "男性" : "女性"); ?></td>
    <td>年龄：<?php echo ($row->age < 0) ? ($row->age + 1000)."月" : $row->age."岁"; ?></td>
		<td colspan="2">发病日期：
		<?php
			if (!strcmp($row->attackdate, "0000-00-00"))
			{
				echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
			}
			else
			{
				echo nl2br(htmlentities($row->attackdate));
			}
		?>
		</td>
	</tr>
	</td>
	</table>
  </tr>
  <tr height="400">
    <td width="80">病史</td><td><?php echo nl2br(htmlentities($row->diag)); ?></td>
  </tr>
  <tr height="200">
    <td width="80">处方</td><td><?php echo nl2br(htmlentities($row->prescribe)); ?></td>
  </tr>
  <tr height="200">
    <td width="80">煎煮法</td><td><?php echo nl2br(htmlentities($row->usemethod)); ?></td>
  </tr>
</table>
</center>
</body>
</html>